package com.gregbugaj.nscaffold.domain.extended;

import com.gregbugaj.nscaffold.annotation.RenderingHint;
import com.gregbugaj.nscaffold.annotation.RenderingHints;
import com.gregbugaj.nscaffold.annotation.SelectedLabel;
import com.gregbugaj.nscaffold.domain.Keyword;


/**
 * Sample Class that decorates  
 * @author gbugaj
 *
 */
@RenderingHints(
		{
			@RenderingHint(
					property="name", 
					viewModel="./models/components/jsf/StringCustom.ftl", 
					editModel = ""
			),	
			
			@RenderingHint(
					property="description", 
					viewModel="./models/components/jsf/StringCustom.ftl", 
					editModel = ""
			),	
		}
)
public class KeywordHints extends Keyword {

	public KeywordHints(int i, String string) {
		super(i, string);
	}
	
	/**
	 * Method we like to use as a label rather than toString
	 * @return
	 */ 
	
	@SelectedLabel
	public String getLabel(){
		return "Label "+getName();				
	}
}
